#include <stdio.h>

int main(void)
{
	int i, a[4], *p;

	printf("Input 4 integers: ");
	for (i = 0; i < 4; i++)
		scanf("%d", &a[i]);
	for (i = 0; i < 4; i++)
		printf("%6d", a[i]);
	printf("\n");

	printf("Input 4 integers: ");
	for (i = 0; i < 4; i++)
		scanf("%d", a + i);
	for (i = 0; i < 4; i++)
		printf("%6d", *(a + i));
	printf("\n");

	printf("Input 4 integers: ");
	for (p = a; p < a + 4; p++)
		scanf("%d", p);
	for (p = a; p < a + 4; p++)
		printf("%6d", *p);
	printf("\n");

	return 0;
}